﻿using JustMetClient.Modules.WebModule;
using Azylee.Core.IOUtils.TxtUtils;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading;

namespace JustMetClient.Commons
{
    public static partial class R
    {
        public static class Web
        {
            internal static string Server = $"http://{Config.WEB_IP}:{Config.WEB_PORT}";
            internal static string InternetServer = $"http://{Config.INTERNET_IP}:{Config.INTERNET_PORT}";

            public static class Send
            {
                public static string ClientCollection { get { return $"{Server}/terminal/collect/saveClientInfo"; } }
                public static string StrategyResult { get { return $"{Server}/strategyResultApi/postStrategyResult"; } }
                public static string Hardware { get { return $"{Server}/terminalinfoHardWareApi/postHardware"; } }
                public static string Software { get { return $"{Server}/terminalinfoSoftWareApi/postSoftware"; } }
                public static string SystemInfo { get { return $"{Server}/terminalinfoSystemApi/postSystem"; } }
                public static string ShareInfo { get { return $"{Server}/terminal/share/api/save"; } }

                public static string ComputerStatus { get { return Config.IMOS_API + "/imosclient/info/computerstatus"; } }
                public static string UserInfo { get { return Config.IMOS_API + "/imosclient/info/userinfo"; } }
                public static string WebAppConnection { get { return Config.IMOS_API + "/imosclient/webapp/saveRecords"; } }
                public static string AssetBinding { get { return Config.IMOS_API + "/imosclient/asset/bindAssetNum"; } }
                public static string AssetCheck { get { return Config.IMOS_API + "/imosclient/asset/checkAssetNum"; } }
                public static string CPUHighWarning { get { return Config.IMOS_API + "/imosclient/event/add"; } }

                public static string InternetWarning { get { return $"{InternetServer}/audit/internet/api/postAuditInternetLog"; } }
            }
            public static class Get
            {
                public static string PositionTop { get { return Config.IMOS_API + "/imosclient/position/getTop"; } }
                public static string PositionByPid { get { return Config.IMOS_API + "/imosclient/position/getByPid/"; } }
                public static string WebAppAddress { get { return Config.IMOS_API + "/imosclient/webapp/getAllWebApps"; } }
                public static string VersionInfo { get { return Config.IMOS_API + "/imosclient/update/getNewVersion"; } }


                public static string Login { get { return $"{Server}/webLogin/login"; } }
                public static string StrategyVersion { get { return $"{Server}/strategyApi/getStrategyVersion?account="; } }
                public static string StrategyContent { get { return $"{Server}/strategyApi/getStrategyListByAccount?account="; } }

                public static string StandardMessage { get { return $"{Server}/push/message/api/get?id="; } }
            }
        }
    }
}
